using UnityEditor;
using UnityEngine;

namespace Gameplay.PVE.Editor
{
    [CustomEditor(typeof(EnemyAttributes))]
    public class EnemyAttributesEditor : UnityEditor.Editor
    {
        private EnemyAttributes enemy { get {  return target  as EnemyAttributes; } }
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (GUILayout.Button("UpdateModel"))
            {
                enemy.UpdateModel();
            }
        }
    }
}